﻿using System;
using UnityEngine;

namespace DL.Characters.Player.FSM.Data
{
    /// <summary>
    /// 重用数据表
    /// </summary>
    [Serializable]
    public class RuntimeReusableData
    {
        //动画参数
        public float AniTransitionTime = 0.25f;
        
        //输入参数
        public float InputMult;
        public float SpeedMult;

        //跳跃参数 
        public float FastFallVelocity = -7f;
        public float JumpScalableForwardSpeed = 3f;
        public float JumpHight = 1.2f;
        public float MaxJumpCount = 2;
        public float CurrentJumpCount;
        
        //旋转参数
        public bool CanRotation;
        public float CurrentAngle;
        public float TargetAngle;
        public float RotationAngle;
        public float RotationTime;
        public Vector3 TargetDirection;

        /// <summary>
        /// 输入方向
        /// </summary>
        public Vector2 InputDirection;

        //状态 
        public bool Running = true;
        public bool Sprinting;
        public bool IsDodge;
        public bool IsJump;
        
        //战斗数据 
        public Transform CurrentTarget;
    }
}